package WIZ.MSG.MAIL;

import java.util.Properties;
import javax.mail.*;
import javax.mail.internet.*;
import javax.activation.*;
import java.util.*;

public class MyAuthentication extends Authenticator {
	/*
    PasswordAuthentication pwdauth;
    
    public MyAuthentication(String id,String pwd){
        pwdauth = new PasswordAuthentication(id, pwd);
    }

    public PasswordAuthentication getPasswordAuthentication() {
        return pwdauth;
    }
    */
	private String id;
    private String pw;

    public MyAuthentication(String id, String pw) {
        this.id = id;
        this.pw = pw;
    }

    protected javax.mail.PasswordAuthentication getPasswordAuthentication() {
        return new javax.mail.PasswordAuthentication(id, pw);
    }
}